package com.aaa.ms.service.impl;

import com.aaa.common.entity.Order;
import com.aaa.ms.service.OrderService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

//@Service
@Component
public class OrderServiceFallBack implements OrderService {
    @Override
    public List<Order> ListOrder() {
        List<Order> orders=new ArrayList<>();
        Order order=new Order();
        order.setId(44444);
        order.setMemberUsername("服务器出错");
        orders.add(order);
        return orders;
    }
}
